package org.moriwuzhe.shuttle.spring.example;

import org.moriwuzhe.shuttle.spring.annotation.ShuttleComponentScan;
import org.moriwuzhe.shuttle.spring.example.service.ShuttleExampleService;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;


//@ShuttleComponentScan(basePackages = {"org.moriwuzhe.shuttle.spring.example.service"})
@ShuttleComponentScan()
@SpringBootApplication
public class ShuttleSpringExampleApplication {

    public static void main(String[] args) {
        ConfigurableApplicationContext run = SpringApplication.run(ShuttleSpringExampleApplication.class, args);
        ShuttleExampleService service = run.getBean(ShuttleExampleService.class);
        service.add();
        service.search();
        service.update();
    }

}
